﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ElectronicsMarket_Desktop.EMServices;

namespace ElectronicsMarket_Desktop.BL
{
    public class BillboardBL
    {
        ServicesReleaseSoapClient services;
        BILLBOAD _billboard;

        public BILLBOAD Billboard
        {
            get { return _billboard; }
            set { _billboard = value; }
        }

        public BillboardBL()
        {
            services = new ServicesReleaseSoapClient();
            Billboard= new BILLBOAD();

        }
        public void insertBillboard()
        {
            services.insertBillboard(Billboard);
        }
        public void deleteBillboard()
        {
            services.deleteBillboard(Billboard);
        }
        public void updateBillboard()
        {
            services.updateBillboard(Billboard);
        }
        public List<BILLBOAD> getAllBillBoard()
        {
            return services.getAllBillboard().ToList();
        }
        public  long getLastBillboardiId()
        {
            return services.getLastBillboardiId();
        }
    }
}
